﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations.Schema;

namespace WaterRevenueMS.Componnent.Data.Mapping.Maintenance
{
    partial class RepairRecordMap
    {
        partial void RepairRecordMapAppend()
        {
            this.HasKey(t => t.Id);
            this.Property(t => t.Bei_Z)
                .HasMaxLength(100);
            this.Property(t => t.Jian_XYY)
                .HasMaxLength(50);
            this.Property(t => t.Cao_ZY)
                .HasMaxLength(10);
            this.Property(t => t.Liu_SH)
                .HasMaxLength(16);
          

            this.ToTable("Shui_BJX");
            this.Property(t => t.Id).HasColumnName("Shui_BJX_ID")
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity);

            this.HasOptional(t => t.MeterInfo).WithMany(d => d.RepairRecord).HasForeignKey(t => t.Meter_No);//表信息ID
        }
    }
}
